Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Basic Xpage help
Feedback Type: Question
Product Area: Domino Server
Technical Area: Functionality
Platform: AIX
Release: 8.5.3
Reproducible: -Reproducibility-

Hello folks,

I'm fairly new to XPages and I'm trying to do what I think should be a simple task but I can't seem to achieve it. Perhaps someone could help me.

All I want to do is have a field for the user to input a name and then click "Search", which would find a match in the names.nsf and display it int he combo box. I'm not sure how to get the button "Find" to refresh the combo box values

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:table style="width:100.0%">
<xp:tr>
<xp:td>Name</xp:td>
<xp:td>
<xp:inputText id="Name" value="#{viewScope.first}" defaultValue="John"></xp:inputText>
<xp:button value="Find" id="button1">
<xp:this.action>
<xp:actionGroup>
<xp:setValue
binding="#{viewScope.name}"
value="" />
</xp:actionGroup>
</xp:this.action>
</xp:button>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>User Match</xp:td>
<xp:td>
<xp:comboBox id="Color" value="#{view2}">
<xp:selectItem itemLabel="Select One" id="selectItem1"></xp:selectItem>
<xp:selectItems>
<xp:this.value><![CDATA[#{javascript:var dbname =new Array("", "names.nsf");
var txtControlValue = getComponent("Name").getValue();
return @DbLookup(dbname,"$VIMPeople",txtControlValue, 1, "[PARTIALMATCH]")}]]></xp:this.value>
</xp:selectItems>
</xp:comboBox>
</xp:td>
</xp:tr>
</xp:table>
</xp:view>

Thank you in advance for your help :)
Rony


Feedback number WEBBAGMS4S created by ~Kirk Eljumiburakol on 12/14/2016

Status: Open
Comments:

Basic Xpage help (~Kirk Eljumibur... 14.Dec.16)
. . Please Ignore. Found solution (~Kirk Eljumibur... 14.Dec.16)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS